8. Network Service Commands > 8.2 AT+COPS   Operator Selection

8.2
AT+COPS   Operator Selection
AT+COPS queries the present status of the TC65's network registration and allows to determine whether auto­matic or manual network selection shall be used. Additional service is available with AT^SOPS.

Three operator selection modes are available:
•
Automatic
TC65 searches for the home operator automatically. If successful the TC65 registers to the home network. If the home network is not found, TC65 goes on searching. If a permitted operator is found, TC65 registers to this operator.
If no operator is found the TC65 remains unregistered.
•
Manual
Desired operator can be determined using the AT+COPS write command. If the operator is found, TC65 reg­isters to it immediately. If the selected operator is forbidden, the TC65 remains unregistered.
•
Manual/automatic
The ME first tries to find the operator determined via AT+COPS write command. If the ME is able to register to this operator, it enters the manual operator selection mode. If the ME cannot find this operator or fails to register to this operator, then it enters the automatic operator selection mode and starts to select the home operators network or another (permitted) one. If the ME is registered and the manually selected network is not available, the ME will remain registered without further result code notification.
The most recently entered operator selection mode is still valid after the ME was restarted (power-off/on).

The AT+COPS test command conists of several parameter sets, each representing an operator present in the network.
Each set contains the following information:
•
•
•
Any of the parameters may be unavailable and will then be an empty field (,,). The list of operators comes in the following order: Home network, networks referenced in SIM and other networks.
The operator list is followed by a list of the supported <mode>s and <format>s. These lists are delimited from the operator list by two commas.
If the test command is used during an ongoing GPRS transfer, traffic will be interrupted for up to one minute.

The AT+COPS read command returns the current <mode> and the currently selected operator. If no operator is selected, <format> and <oper> are omitted.

The AT+COPS write command forces an attempt to select and register to the GSM network operator (see note below). If the selected operator is not available, no other operator will be selected (except <mode>=4). The selected operator name <format> will apply to further read commands, too.

Command settings are effective over all serial interfaces of the TC65.
Syntax
Test Command  
Response(s)
+COPS: [list of present operators (<opStatus>, long alphanumeric <oper>s,,numeric <oper>s ], , (list of supported <mode>s), (list of supported <format>s)
Read Command  
Response(s)
Write Command  
Response(s)
Reference(s) 
PIN 
ASC0 
ASC1 
USB 
MUX1 
MUX2 
MUX3 
Charge 
Last 
GSM 07.07

Parameter Description
 
Status
0
Unknown
1
Operator available
2
Current operator
3
Operator forbidden
 
<oper>(str)
Operator
If test command: Operator name in long alphanumeric format and numeric format.
If read command: Operator name as per <format>.
If write command: Operator name in numeric format.
 
<mode>(num)(&V)
Parameter values 0 and 1 are stored non-volatile in the TC65.
0(D)
Automatic mode; <oper> field is ignored.
1
Manual operator selection
Write command requires <oper> in numeric format, i.e. <format> shall be 2.
Read command returns the current <mode> and the currently selected <oper>. If no operator is selected, <format> and <oper> are omitted.
2
Manually deregister from network and remain unregistered until <mode>=0 or 1 or 4 is selected.
3
Set only <format> (for AT+COPS read command).
4
Automatic / manual selection; if manual selection fails, automatic mode (<mode>=0) is entered (<oper> field will be present).
 
<format>(num)(&W)(&V)
0(&F)
Long alphanumeric format of <oper>. Can be up to 26 characters long.
2
Numeric format of <oper>. This is the GSM Location Area Identification (LAI) number, which consists of the 3-digit Mobile Country Code (MCC) plus the 2- or 3-digit Mobile Network Code (MNC).


Notes
•
It is not recommended to use the AT+COPS command before passing the CHV (card holder verification) / SIM PIN1 verification. In case of entering of AT+COPS= 0 before PIN1 verification the module will answer with OK and does not try to register to the network. Also, the test command should only be used after PIN1 authenti­cation.
•
It's possible to apply a 5- or 6-digit LAI for numeric format of <oper> parameter. Please use the correct 2- or 3-digit Mobile Network Code. Otherwise an unintended PLMN could be selected.